import React, { Component } from 'react'
import { DatePicker,Button,Table } from 'antd';

export default class App extends Component {
	state = {
		dataSource:[
			{
				key: '1',
				name: '胡彦斌',
				age: 32,
				address: '西湖区湖底公园1号',
			},
			{
				key: '2',
				name: '胡彦祖',
				age: 42,
				address: '西湖区湖底公园1号',
			},
		],
		columns:[
			{
				title: '姓名',
				dataIndex: 'name',
				key: 'name',
			},
			{
				title: '年龄',
				dataIndex: 'age',
				key: 'age',
			},
			{
				title: '住址',
				dataIndex: 'address',
				key: 'address',
			},
		]
	}
	render() {
		return (
			<div>
				App.....
				<button>点我</button>
				<input type="text" placeholder="请输入内容"/>
				<br/>
				<br/>
				<Button type="primary">登录</Button>
				<Button danger>删除</Button>
				<Button>取消</Button>
				<DatePicker />
				<Table loading dataSource={this.state.dataSource} columns={this.state.columns} bordered/>
			</div>
		)
	}
}
